Ext.ClassManager.create('vacs.view.bitacoraregistro.CreateView', {
	extend: 'Ext.form.Panel',
	alias: 'widget.createBitacoraRegistroForm',
	id: 'BitacoraRegistro',
	url: 'bitacoraregistro',
	width: '100%',
	//frame: true,
    title: 'Crear Nuevo Bitacora Registro',
	defaults: {
		//anchor: '50%',
		labelPad: 20,
		labelAlign: 'right',
		padding: '10 0 5 0',
		labelWidth: 115
	},
	
	initComponent: function() {
		this.items = [{
			xtype: 'combobox',
			id: 'idtiporegistro-bitacoraRegistro',
			fieldLabel: 'Tipo Registro',
			name: 'idtiporegistro',
			queryMode: 'local',
			displayField: 'descripcion',
			valueField: 'idregistro',
			forceSelection:true,
			allowBlank: false,	
			store: 'TipoRegistroStore'
		},{
			xtype: 'datefield',
			id: 'fecharegistro-planServicio',
			fieldLabel: 'Fecha Registro',
			allowBlank: false,
			name: 'fecharegistro',
			format : 'd/m/Y'
		},{
			xtype: 'textfield',
			id: 'info-bitacoraRegistro',
			fieldLabel: 'Informacion',
			maxLength:300,
			allowBlank: false,
			name: 'info',
			anchor: '50%',
		}];
		
		this.buttons = [{
			text: 'Crear Bitacora Registro',
			id:'idButtonCrearBitacoraRegistro',
			formBind: true
		}];
		
		this.callParent(arguments);
	}
});